


#ifndef __sliptree__MoveUp__
#define __sliptree__MoveUp__

#include <cocos2d.h>
#include "Branch.h"
using namespace cocos2d;


class MoveUp : public CCComponent
{
public:
	MoveUp();

	void fMoveToTop();

	void fIsMax();

	void fIsMoveToTopCallBack(CCObject  *sender);

	void fIsMaxCallBack(CCObject  *sender);

	float fDurationPerLevel(int level);

	void fStopAction();

private:
	Branch * mParent;

	virtual void update(float ct);

	CCSize mSizeScreen;

	CCSequence * mSequenceMoveToTop;
};

#endif /* defined(__sliptree__MoveUp__) */